﻿<Page
    x:Class="OpenRPOSMetro.Login"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:local="using:OpenRPOSMetro"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    mc:Ignorable="d">

    <Grid Background="{ThemeResource ApplicationPageBackgroundThemeBrush}">
        <Grid Width="340" Height="420">
            <Image x:Name="imgLogo" HorizontalAlignment="Left" Height="200" Margin="70,3,0,0" VerticalAlignment="Top" Width="200" Source="Assets/Logo.png"/>
            <TextBlock x:Name="tblkOpenRPOS" HorizontalAlignment="Left" Margin="100,204,0,0" TextWrapping="Wrap" Text="OpenRPOS" VerticalAlignment="Top" FontFamily="Segoe UI Light" FontSize="30"/>
            <TextBlock x:Name="tblkUsername" HorizontalAlignment="Left" Margin="5,253,0,0" TextWrapping="Wrap" Text="Username" VerticalAlignment="Top" FontFamily="Segoe UI Light" FontSize="16"/>
            <TextBox x:Name="tbUsername" HorizontalAlignment="Left" Margin="81,244,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" Width="253" FontFamily="Segoe UI Light" SelectionHighlightColor="#FF2AB7E0"/>
            <TextBlock x:Name="tblkPassword" HorizontalAlignment="Left" Margin="10,291,0,0" TextWrapping="Wrap" Text="Password" VerticalAlignment="Top" FontFamily="Segoe UI Light" FontSize="16"/>
            <PasswordBox x:Name="pbPassword" HorizontalAlignment="Left" Margin="81,281,0,0" VerticalAlignment="Top" Width="253" SelectionHighlightColor="#FF2AB7E0" KeyDown="pbPassword_KeyDown"/>
            <TextBlock x:Name="tblkErrorMessage" HorizontalAlignment="Center" Margin="0,318,0,0" TextWrapping="Wrap" Text="" VerticalAlignment="Top" FontFamily="Segoe UI Light" FontSize="16" Foreground="Red" />
            <Button x:Name="btnLogin" Content="Login" HorizontalAlignment="Left" Margin="127,344,0,0" VerticalAlignment="Top" Click="btnLogin_Click" Height="70" Width="95" FontSize="20"/>
        </Grid>
        <ProgressRing x:Name="prWait" IsActive="False" Width="50" Height="50" Foreground="#FF98DEF8" />
    </Grid>
</Page>
